import request from '@/utils/request'

const point = {

  tree () {
    return request.get('/kjpt/platformSystem/tree');
  },
  list (params) {
    return request.get('/kjpt/platformSystem/list', { params });
  },
  add (data) {
    return request.post("/kjpt/platformSystem/add", data)
  },
  edit (data) {
    return request.post("/kjpt/platformSystem/update", data)
  },
  del (id) {
    return request.post(`/kjpt/platformSystem/delete/${id}`)
  },
  get (id) {
    return request.get(`/kjpt/platformSystem/detail/${id}`)
  },
}

export default point;
